package com.services.impl;

import com.beans.Neighborhood;
import com.data.mapper.BaseMapper;
import com.data.mapper.NeighborhoodMapper;
import com.services.NeighborhoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author jiangwei
 * @since 18/1/11
 */
@Service
public class NeighborhoodServiceImpl extends BaseServiceImpl<Neighborhood> implements NeighborhoodService {

    @Autowired
    private NeighborhoodMapper neighborhoodMapper;

    @Override
    public BaseMapper<Neighborhood> getMapper(){
        return neighborhoodMapper;
    }

    @Override
    public List<Neighborhood> queryExists(Neighborhood neighborhood){
        return neighborhoodMapper.queryExists(neighborhood);
    }

}
